import { IPlayer, IRoom } from "./Api";
import { IClientInput, IState } from "./State";

export interface IMsgPlayerList {
    list: IPlayer[]
}

export interface IMsgRoomList {
    list: IRoom[]
}

export interface IMsgRoomInfo {
    room: IRoom
}
export interface IMsgRoomClose {
    msg: string
}

export interface IMsgGameStart {
    state: IState
}

export interface IMsgClientSync {
    frameId: number,
    input: IClientInput
}

export interface IMsgServerSync {
    inputs: IClientInput[],
    lastFrameId: number
}